import { GCellRenderer } from "../../../../../../com/mui/controls/GCellRenderer";
import { ObjCreate } from "../../../common/ObjCreate";
import { GlobalStyle } from "../../../../../common/global/GlobalStyle";
import { SRobCityTwoJoinTeam } from "../../../../../../Message/Public/SRobCityTwoJoinTeam";
import { GTextFiled } from "../../../../../../com/mui/controls/GTextFiled";
//class KingChampionShipInfoRender
    
    export  class KingChampionShipInfoRender extends GCellRenderer
    {
        constructor()
        {
            super();
            this._nameLabel = ObjCreate.createGTextField("", 0, 0, 150, 20, this, GlobalStyle.textFormat6);
            this._scoreLabel = ObjCreate.createGTextField("", 120, 0, 45, 20, this, GlobalStyle.getTextFormatCenter(GlobalStyle.textFormat6));
            this._numLabel = ObjCreate.createGTextField("", 195, 0, 45, 20, this, GlobalStyle.getTextFormatCenter(GlobalStyle.textFormat6));
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            super.data = arg1;
            var loc1=arg1 as SRobCityTwoJoinTeam;
            if (loc1) 
            {
                this._nameLabel.htmlText = loc1.guildName;
                this._scoreLabel.htmlText = "" + loc1.score;
                this._numLabel.htmlText = "" + loc1.bossNum;
            }
            return;
        }

        /* internal */ /* var */_nameLabel: GTextFiled;

        /* internal */ /* var */_scoreLabel: GTextFiled;

        /* internal */ /* var */_numLabel: GTextFiled;
    }
